package com.lksy.web.service.system;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.lksy.web.dao.system.AdminDao;

@Service
public class AdminService {

	public boolean login(String username,String userpassword) {
		try {
			return AdminDao.getInstance().login(username, userpassword);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return false;
	}
	
	public List<Map<String,Object>> loadAllSysLog() {
		try {
			return AdminDao.getInstance().loadAllSysLog();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}
}
